# 2021年每个月的天数
days_in_month = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]

# 2021年1月1日是星期五
first_day_of_month = 5  # 0=Monday, ..., 5=Friday

# 打印日历的函数
def print_month(month_name, days, start_day):
    print(f"      {month_name}")
    print("Mo Tu We Th Fr Sa Su")
    
    
    # 打印空白
    day = 1
    for _ in range(start_day):
        print("   ", end="")
    
    # 打印每一天
    for day in range(1, days + 1):
        print(f"{day:2d}", end=" ")
        start_day += 1
        if start_day % 7 == 0:
            print()
    
    print("\n")  # 每个月之间留空行
    return start_day % 7

# 打印每个月的日历
month_names = [
    "January", "February", "March", "April", "May", "June",
    "July", "August", "September", "October", "November", "December"
]

start_day = first_day_of_month
for month, days in zip(month_names, days_in_month):
    start_day = print_month(month, days, start_day)


   #以上是AI给出的方法，我不会啊……
   
   #如何打成四行三列的样子哦
